home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / database / postgres / mpsql-1.001 / mpsql-1~ / mpsql-1.0 / util.h < prev   
Encoding:
C/C++ Source or Header  |  1996-01-28  |  1008 b   |  30 lines

  1. /************************************************************************/
  2. /* File   : util.h                                            */
  3. /* Purpose: utility module header                                */
  4. /* By     : Keith R. Davis                                */
  5. /* Date   : 12/27/95                                        */
  6. /* Notes  : Copyright(c) 1996 Whit River Software            */
  7. /*          Copyright(c) 1994, Regents of the University of California  */
  8. /************************************************************************/
  9.  
  10. #ifndef _UTIL_H
  11. #define _UTIL_H
  12.  
  13. /* MODIFIES the string passed in and returns ptr to it */
  14. extern char* leftTrim(char* s);  
  15. extern char* rightTrim(char* s);
  16. extern char* doubleTrim(char* s);
  17.  
  18. /* dupstr : copies a string, while making room for it */
  19. /* the CALLER is responsible for freeing the space */
  20. /* returns NULL if the argument is NULL */
  21. extern char* dupstr(char *s);
  22.  
  23. /* reverses a character string */
  24. void reverse(char *s);
  25.  
  26. /* converts int value to character */
  27. char* itoa(int n, char *s);  
  28.  
  29. #endif
  30.